﻿@model Janus.Mes.VO.SysConfigVO
@{
    Layout = null;
}
<script>
    function ShowDept(currentId) {
        $(".detail").hide();
        $("#" + currentId).show();
    }
</script>
<div class="pageContent">
    <form method="post" action="Quality/ProcessCheck/Create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <p>
                <label>
                    送检编号：
                </label>
            </p>
            <p>
                <label>
                    检验类型：
                </label>
            </p>
            <p>
                <label>
                    检验方式：
                </label>
            </p>
            <p>
                <label>
                    产品编号：
                </label>
            </p>
            <p>
                <label>
                    产品名称：
                </label>
            </p>
            <p>
                <label>
                    计量单位：
                </label>
            </p>
            <p>
                <label>
                    报检数量：
                </label>
            </p>
            <p>
                <label>
                    采样类型：
                </label>
            </p>
            <p>
                <label>
                    自定义抽检表：
                </label>
            </p>
            <p>
                <label>
                    抽样水平：
                </label>
            </p>
            <p>
                <label>
                    严格程度：
                </label>
            </p>
            <p>
                <label>
                    AQL 值：
                </label>
            </p>
            <p>
                <label>
                    抽检数量：
                </label>
            </p>
            <p>
                <label>
                    抽检率%：
                </label>
            </p>
            <p>
                <label>
                    拒收数：
                </label>
            </p>
            <p>
                <label>
                    拒收数：
                </label>
            </p>
            <div>
                <table class="treetable list" width="100%">
                    <thead>
                        <tr class="header">
                            <th>检验项目</th>
                            <th>检验特性</th>
                            <th>必检</th>
                            <th>检验数</th>
                            <th>是否破坏</th>
                            <th>控制数据</th>
                            <th>文件类型</th>
                            <th>链接文件</th>
                            <th>检验地点</th>
                            <th>检验环境</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="selected" target="ProcessCheck_id" rel="2" data-tt-id="2" onclick="ShowDept('detail0')">
                            <td>结构检验</td>
                            <td>有无缺胶</td>
                            <td>是</td>
                            <td></td>
                            <td>是</td>
                            <td>定性</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr target="ProcessCheck_id" rel="2" data-tt-id="2" onclick="ShowDept('detail1')">
                            <td>尺寸检验</td>
                            <td>内长</td>
                            <td>否</td>
                            <td></td>
                            <td>否</td>
                            <td>定量</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="detail" id="detail0">
                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">检验特性-结构检验</div>
                        <div>
                            <p>
                                <label>
                                    已检数：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title,new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    合格数量：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    不合格数量：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    检验结果：
                                </label>
                                <select class="combox">
                                    <option value="1">合格</option>
                                    <option value="0">不合格</option>
                                </select>
                            </p>
                            <p>
                                <label>
                                    检验方法：
                                </label>
                                <select class="combox">
                                    <option value="1">目视检测</option>
                                    <option value="0">仪量测量</option>
                                </select>
                            </p>
                            <p>
                                <label>
                                    检验地点：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    备注：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>
                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">缺陷原因-结构检验</div>
                        <div>
                            <p>
                                <label>
                                    缺陷原因：
                                </label>
                                <input id="inputDefect1" name="defect1.id" value="1" type="hidden">
                                <input class="required textInput valid" name="defect1.reason" type="text" postfield="keyword" suggestfields="reason,category,level" suggesturl="Quality/ProcessCheck/Reason" lookupgroup="defect1" autocomplete="off">
                                <a class="btnLook" href="Quality/ProcessCheck/Reason" lookupgroup="defect1">查找带回</a>
                            </p>
                            <p>
                                <label>
                                    缺陷分类：
                                </label>
                                <input class="readonly textInput" name="defect1.category" readonly="readonly" type="text">
                            </p>
                            <p>
                                <label>
                                    缺陷等级：
                                </label>
                                <input class="readonly textInput" name="defect1.level" readonly="readonly" type="text">
                            </p>
                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>
                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">责任判定-结构检验</div>
                        <div>
                            <p>
                                <label>
                                    最后期限：
                                </label>
                                <input class="date textInput" id="Name" name="Name" pattern="yyyy-MM-dd" type="text" value="">
                            </p>
                            <p>
                                <label>
                                    责任部门：
                                </label>
                                <input name="Dept1.id" value="1" type="hidden">
                                <input name="Dept1.name" type="text" class="textInput valid">
                                <a class="btnLook" href="Quality/ProcessCheck/Dept" lookupgroup="Dept1">查找带回</a>
                            </p>
                            <p>
                                <label>
                                    部门主管：
                                </label>
                                <input class="readonly textInput" name="Dept1.manager" readonly="readonly" type="text">
                            </p>
                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>
            </div>
            <div class="detail" id="detail1" style="display:none">
                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">检验特性-尺寸检验</div>
                        <div>
                            <p>
                                <label>
                                    已检数：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    合格数量：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    不合格数量：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    检验结果：
                                </label>
                                <select class="combox">
                                    <option value="1">合格</option>
                                    <option value="0">不合格</option>
                                </select>
                            </p>
                            <p>
                                <label>
                                    检验方法：
                                </label>
                                <select class="combox">
                                    <option value="1">目视检测</option>
                                    <option value="0">仪量测量</option>
                                </select>
                            </p>
                            <p>
                                <label>
                                    检验地点：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                            <p>
                                <label>
                                    备注：
                                </label>
                                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                            </p>
                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>
                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">缺陷原因-尺寸检验</div>
                        <div>
                            <p>
                                <label>
                                    缺陷原因：
                                </label>
                                <input id="inputDefect2" name="defect2.id" value="1" type="hidden">
                                <input class="required textInput valid" name="defect2.reason" type="text" postfield="keyword" suggestfields="reason,category,level" suggesturl="Quality/ProcessCheck/Reason" lookupgroup="defect2" autocomplete="off">
                                <a class="btnLook" href="Quality/ProcessCheck/Reason" lookupgroup="defect2">查找带回</a>
                            </p>
                            <p>
                                <label>
                                    缺陷分类：
                                </label>
                                <input class="readonly textInput" name="defect2.category" readonly="readonly" type="text">
                            </p>
                            <p>
                                <label>
                                    缺陷等级：
                                </label>
                                <input class="readonly textInput" name="defect2.level" readonly="readonly" type="text">
                            </p>
                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>
                <div class="MyPanel">
                    <b class="b1"></b><b class="b2 d1"></b><b class="b3 d1"></b><b class="b4 d1"></b>
                    <div class="b d1 k">
                        <div class="Title">责任判定-尺寸检验</div>
                        <div>
                            <p>
                                <label>
                                    最后期限：
                                </label>
                                <input class="date textInput" id="Name" name="Name" pattern="yyyy-MM-dd" type="text" value="">
                            </p>
                            <p>
                                <label>
                                    责任部门：
                                </label>
                                <input name="Dept2.id" value="1" type="hidden">
                                <input name="Dept2.name" type="text" class="textInput valid">
                                <a class="btnLook" href="Quality/ProcessCheck/Dept" lookupgroup="Dept2">查找带回</a>
                            </p>
                            <p>
                                <label>
                                    部门主管：
                                </label>
                                <input class="readonly textInput" name="Dept2.manager" readonly="readonly" type="text">
                            </p>
                        </div>
                    </div>
                    <b class="b4b d1"></b><b class="b3b d1"></b><b class="b2b d1"></b><b class="b1b"></b>
                </div>
            </div>
            <p>
                <label>
                    合格数量：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    制程不良数量：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    来料不良数量：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    良品留样数：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    不良品留样数量：
                </label>
                @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
            </p>
            <p>
                <label>
                    判定结果：
                </label>
                <select class="combox">
                    <option value="1">合格</option>
                    <option value="0">不合格</option>
                </select>
            </p>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>
